﻿using System;
using System.Web.Mvc;

namespace Yunzuan.Foundation.Common
{
    public class JsonK : JsonResult
    {
        public static JsonResult LargeJson(object data)
        {
            return new System.Web.Mvc.JsonResult()
            {
                Data = data,
                MaxJsonLength = Int32.MaxValue,
            };
        }
        public static JsonResult LargeJson(object data, JsonRequestBehavior behavior)
        {
            return new System.Web.Mvc.JsonResult()
            {
                Data = data,
                JsonRequestBehavior = behavior,
                MaxJsonLength = Int32.MaxValue
            };
        }
    }

}
